#include "link_list.h"
#include <iostream>
using namespace std;

int main()
{
	int tempi;
	char tempc;
	cout << "Putin a intger and a char:" << endl;
	cin >> tempi >> tempc;
	link_list a( tempi, tempc);//creat new linklist,head data are tempi and tempc.
	
	//the pcurrent node is head node,never change,so every time, data insert head node after.
	a.locate(tempi);
	a.insert(1,'c');
	a.insert(2, 'b');
	a.insert(3, 'f');
	cout << "After insert:" << endl;
	a.show();
	
	a.locate('b');
	a.delete_pcu();
	cout << "After delete:" << endl;
	a.show();
	
	a.destry();
	cout << "After destry:" << endl;
	a.show();
	return 0;
	
}

